<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>第⼀个 ECharts 实例</title>
    <!-- 引⼊ echarts.js -->
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
</head>
<body>
<!-- 为ECharts准备⼀个具备⼤⼩（宽⾼）的Dom -->
    <div id="main" style="width: 600px;height:400px;"></div>
    <script type="text/javascript">

var myChart = echarts.init(document.getElementById('main'));
myChart.setOption({
series : [{name: '访问来源', type: 'pie', radius: '55%', data:[
                                {value:183472, name:'流失用户'},
                                {value:6546, name:'回流用户'},
                                {value:524, name:'连续活跃用户'},
                                {value:91, name:'新用户'},
                                {value:0, name:'活跃用户'}
                            ]
                        }
                    ]
                })
</script>
</body>
</html>